<html>
	<head>
		<title>Registro</title>
	</head>
	
	<body>
		<div id="fb-root"></div>
		<script src="http://connect.facebook.net/es_LA/all.js#appId=423263144390114&xfbml=1"></script>
 
		<fb:registration redirect-uri="http://www.delivery351.hol.es/facebook/addUser.php"
 			fields='[ 
 				{"name":"name"},
 				{"name":"email"},
 				{"name":"direccion","description":"Direccion","type":"text"},
 				{"name":"celular","description":"Celular","type":"text"},
				{"name":"password"},
 				]'
 			onvalidate="validate">
 		
 		</fb:registration>
 		
 		<script>
			function validate(form) {
 				errors = {};
 				if ( form.direccion.length < 5 ) {
 					errors.direccion = "Informacion necesaria para poder realizar pedidos";
 				}
 				if ( isNaN(form.celular) || form.celular.length < 6){
 					errors.celular = "Informacion necesaria para poder realizar pedidos";
 				}
 				return errors;
			}

		</script>

	</body>
</html>